from views.admin_view  import AdminView
from views.business_view import BusinessView

def main():
    print("=== 饿了么商家管理系统 ===")
    print("1. 管理员登录")
    print("2. 商家登录")
    print("3. 退出系统")
    
    while True:
        try:
            choice = int(input("请选择登录类型："))
            
            if choice == 1:
                AdminView().show_login()
            elif choice == 2:
                BusinessView().show_login()
            elif choice == 3:
                print("系统退出，谢谢使用！")
                break
            else:
                print("无效的选择！")
        except ValueError:
            print("请输入有效的数字选项！")

if __name__ == "__main__":
    main()